package com.sc.dal.mapper.promotion;

import java.util.List;
import java.util.Map;

import com.sc.dal.dto.promotion.PromotionDetailDto;
import com.sc.dal.model.promotion.PromotionDetail;

public interface PromotionDetailMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(PromotionDetail record);

    int insertSelective(PromotionDetailDto record);

    PromotionDetail selectByPrimaryKey(Integer id);
    
    PromotionDetailDto selectProDetailByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(PromotionDetail record);

    int updateByPrimaryKey(PromotionDetail record);
    
    List<Map<String,Object>> selectByParam(Map<String ,Object> map);

	int updateProDetail(PromotionDetailDto dto);
	
	List<PromotionDetailDto> selectProDetailByProId(Integer pro_id);
}